package com.n5x.common.base;

import com.n5x.model.user.UserAccount;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.io.Serializable;

/**
 * t登录token实体
 * Created by Administrator on 2017/11/9.
 */
public class TokenModel implements Serializable {
    String userId; //用户id
    String openId;//第三方登录id
    long loginTime;//登录时间
    TokenAccountType StringUserType;//用户角色(管理员，普通用户)

    public enum TokenAccountType {
        管理员, 普通用户;

    }

    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

    public long getLoginTime() {
        return loginTime;
    }

    public void setLoginTime(long loginTime) {
        this.loginTime = loginTime;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this, ToStringStyle.MULTI_LINE_STYLE);
    }
}
